import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBApplication.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBWorkTaiModule/YBWorkTaiSubPage/YBWorkTaiSubImageTitlePage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBUtils/YBBaseUtils/YBisLoginUtils.dart';

class YBMineExListHeightPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SliverToBoxAdapter(
       child: Container(
         color: YBColor.colorF7F8FA,
         child: Padding(
           padding: EdgeInsets.only(left: YBTextStyle.adapterSize20, right: YBTextStyle.adapterSize20,top: YBTextStyle.adapterSize16),
           child: Container(
             height: YBTextStyle.adapterSize127,
             decoration: BoxDecoration(
               borderRadius: BorderRadius.circular(YBTextStyle.adapterSize8),
               color: YBColor.white,
             ),
             child:Column(
               mainAxisAlignment: MainAxisAlignment.center,
               crossAxisAlignment: CrossAxisAlignment.start,
               children: [
                 Container(
                   child: Row(
                     children: [
                       Container(
                         width: YBTextStyle.adapterSize16,
                       ),
                       Text(YBChineseText.homeTextBanShiTitle,style: YBTextStyle.mineTitleText,),
                     ],
                   ),
                 ),
                 Container(
                   height: YBTextStyle.adapterSize16,
                 ),
                 Container(
                   height:YBTextStyle.adapterSize70,
                   child: Row(
                     mainAxisAlignment: MainAxisAlignment.spaceAround,
                     crossAxisAlignment: CrossAxisAlignment.stretch,
                     children: [
                       InkWell(
                         child: YBWorkTaiSubImageTitlePage(imageStr: "minewodegongdan",titleStr: YBChineseText.mineMydeGongdanTitle,widthValue: YBTextStyle.adapterSize32,heightValue: YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.mineTitleBanShiMiShuText,),
                         onTap: (){
                           if(YBisLoginUtils.isLogin() == true){
                             YBApplication.router.navigateTo(context, '/mine/myGongDanPage?type=1');
                           }else{
                             YBApplication.router.navigateTo(context, '/loginIn');
                           }
                         },
                       ),
                       InkWell(
                         child: YBWorkTaiSubImageTitlePage(imageStr: "minedaijiedan",titleStr: YBChineseText.minedaiJieDanTitle,widthValue: YBTextStyle.adapterSize32,heightValue: YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.mineTitleBanShiMiShuText,),
                         onTap: (){
                           if(YBisLoginUtils.isLogin() == true){
                             YBApplication.router.navigateTo(context, '/mine/myGongDanPage?type=2');
                           }else{
                             YBApplication.router.navigateTo(context, '/loginIn');
                           }
                         },
                       ),
                       InkWell(
                         child: YBWorkTaiSubImageTitlePage(imageStr: "mineyijiedan",titleStr: YBChineseText.mineYiJieDanTitle,widthValue: YBTextStyle.adapterSize32,heightValue: YBTextStyle.adapterSize32,textStyleInfo:YBTextStyle.mineTitleBanShiMiShuText,),
                         onTap: (){
                           if(YBisLoginUtils.isLogin() == true){
                             YBApplication.router.navigateTo(context, '/mine/myGongDanPage?type=3');
                           }else{
                             YBApplication.router.navigateTo(context, '/loginIn');
                           }
                         },
                       ),
                     ],
                   ),
                 ),
               ],
             ),
           ),
         ),
       ),
    );
  }
}
